{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<body>
<style type="text/css">
.page{float:none;}
.tab_info{width:700px;}
</style>
<div class="sub-body">
<div class="tab_info">
<div class="tab-title-1"><span>{$lang.spare_list}</span></div>
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
      <tr>
		<td colspan="4" align="right" style="padding-right:50px;"><a href="{url index.php?app=spare&act=add}" class="add btn-2">添加位置</a></td>
	  </tr>
      <tr>
		<th>{$lang.No}</th>
		<th>{$lang.spare_position}</th>
		<th>{$lang.handle}</th>
      </tr>
	 <!--{foreach from=$spare_list item=lists name=sl}-->
       <tr>
	        <td>{$smarty.foreach.sl.iteration}</td>
	        <td>{$lists.spare_position|escape}</td>
	        <td><a href="{url app=spare&act=edit&spare_id=$lists.spare_id}">编辑</a>|<a href="javascript:if(confirm('确认删除此备用扣位置吗?')==true){location.href='{url app=spare&act=drop&spare_id=$lists.spare_id}';};">删除</a></td>
      </tr>
	  <!--{/foreach}-->
    </table>
    {include file=page.html}
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div></div>
</body>
</html>